#pragma once
#include "timer.h"

class ObjectTest {
private:
	ObjectTest();
public:
	template<class T>
	static double test(size_t objectCount) {
		Timer timer;
		T** vector = new T*[objectCount];

		timer.start();

		for(size_t i = 0; i < objectCount; i++)
		{
			vector[i] = new(T);
		}

		for(size_t i = 0; objectCount > i; i++)
		{
			delete vector[i];
		}

		double poolTime = timer.stop();

		delete[] vector;
		return poolTime;
	}
};